import request from '@/utils/http.js'


// 发表帖子
export function addAndUpdateArticle(param) {
	 return request.post('/v1/posts/addAndUpdatePosts',param)
}

//获取桌游
export function getGameInfo(param) {
	 return request.get('v1/game/list',param)
}

//获取帖子标签
export function getPostTags(param) {
	 return request.get('v1/posts/listPostTags',param)
}

//分页查询帖子
export function pageAll(param) {
	 return request.get('v1/posts/all',param)
}

//根据帖子id查询帖子
export function listOneById(param) {
	 return request.get('v1/posts/info',param)
}

//根据uid分页查询帖子
export function pageByUid(param) {
	 return request.get('v1/posts/pageByUid',param)
}

//点赞帖子
export function like(param) {
	 return request.post('v1/postsLike/like',param)
}


//查询我的收藏
export function pageCollect(param) {
	 return request.get('v1/postsCollect/page',param)
}

